<?php 
ini_set("display_errors", "On");
error_reporting(E_ALL | E_STRICT);
require_once('/php/public/id.inc');
require_once('/php/public/power.inc');//模拟账号
require_once('ipqc.class.php'); #连接Oracle
$ipqc1 = new ipqc();
$arr = $ipqc1->get_sql_arr("select * from bcd_ipqc where check_man='$ID'");
#var_dump($arr);
 
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GB2312" />
<title>JavaScript表格高亮选择 - 站长素材</title>

<!-- paste this code into your webpage -->
<link href="tablecloth/tablecloth.css" rel="stylesheet" type="text/css" media="screen" />
<script type="text/javascript" src="tablecloth/tablecloth.js"></script>
<!-- end -->

<style>

body{
	margin:0;
	padding:0;
	background:#f1f1f1;
	font:70% Arial, Helvetica, sans-serif; 
	color:#555;
	line-height:150%;
	text-align:left;
}
a{
	text-decoration:none;
	color:#057fac;
}
a:hover{
	text-decoration:none;
	color:#999;
}
h1{
	font-size:140%;
	margin:0 20px;
	line-height:80px;	
}
h2{
	font-size:120%;
}
#container{
	margin:0 auto;
	width:680px;
	background:#fff;
	padding-bottom:20px;
}
#content{margin:0 20px;}
p.sig{	
	margin:0 auto;
	width:680px;
	padding:1em 0;
}
form{
	margin:1em 0;
	padding:.2em 20px;
	background:#eee;
}
</style>

</head>

<body>

<div id="container">
	<h1>Tablecloth: Example</h1>
	
	<div id="content">


	<!-- all you need with Tablecloth is a regular, well formed table. No need for id's, class names... --> 
	
		<h2>Table with top headings</h2>
	
		<!--<table cellspacing="0" cellpadding="0">
			<tr>
				<th>Title</th>
				<th>Title</th>
				<th>Title</th>
				<th>Title</th>
			</tr>
			<tr>
				<td>Data</td>
				<td>Data</td>
				<td>Data</td>
				<td>Data</td>
			</tr>			
			<tr>
				<td>Data</td>
				<td>Data</td>
				<td>Data</td>
				<td>Data</td>
			</tr>			
			<tr>
				<td>Data</td>
				<td>Data</td>
				<td>Data</td>
				<td>Data</td>
			</tr>			
			<tr>
				<td>Data</td>
				<td>Data</td>
				<td>Data</td>
				<td>Data</td>
			</tr>																				
		</table>-->
		
		<table cellspacing="0" cellpadding="0">
			<tr>
			    <th>序号</th>
				<th>日期</th>
				<th>箱号</th>				
				<th>作番号</th>
				<th>部件名称</th>
				<th>部品编码</th>
				<th>数量</th>
				<th>判定</th>
				<th>自检表</th>
				<th>不良数</th>
				<th>不良单号</th>
				<th>品保检查员</th>							
			</tr>
<?php	
       $cnt = 0;
       foreach ((array) $arr as $k => $val) {
           $cnt++;
           echo "	<tr>
		        <td>$cnt</td>
				<td>".$val['CREATE_DATE']."</td>
				<td>".$val['PACKING']."</td>
				<td>".$val['MFG_NO']."</td>
				<td>".$val['PART_NAME']."</td>
				<td>".$val['PART_NO']."</td>
				<td>".$val['QTY']."</td>
				<td>".$val['JUDGE']."</td>
				<td></td>
				<td>".$val['CHECK_BAD_QTY']."</td>
				<td>".$val['BAD_NO']."</td>
				<td>".$val['CHECK_MAN']."</td>				 						
			</tr>";
       }
?>			
																											
		</table>		
	
	<!--	<h2>Table with side headings</h2>
	
		<table cellspacing="0" cellpadding="0">
			<tr>
				<th>Title</th>
				<td>Data</td>
				<td>Data</td>
				<td>Data</td>
			</tr>
			<tr>
				<th>Title</th>
				<td>Data</td>
				<td>Data</td>
				<td>Data</td>
			</tr>			
			<tr>
				<th>Title</th>
				<td>Data</td>
				<td>Data</td>
				<td>Data</td>
			</tr>			
			<tr>
				<th>Title</th>
				<td>Data</td>
				<td>Data</td>
				<td>Data</td>
			</tr>			
			<tr>
				<th>Title</th>
				<td>Data</td>
				<td>Data</td>
				<td>Data</td>
			</tr>																																					
		</table>
		
		<h2>Table with top and side headings</h2>
	
		<table cellspacing="0" cellpadding="0">
			<tr>
				<td>&nbsp;</td>
				<th>Title</th>
				<th>Title</th>
				<th>Title</th>
			</tr>
			<tr>
				<th>Title</th>
				<td>Data</td>
				<td>Data</td>
				<td>Data</td>
			</tr>
			<tr>
				<th>Title</th>
				<td>Data</td>
				<td>Data</td>
				<td>Data</td>
			</tr>			
			<tr>
				<th>Title</th>
				<td>Data</td>
				<td>Data</td>
				<td>Data</td>
			</tr>			
			<tr>
				<th>Title</th>
				<td>Data</td>
				<td>Data</td>
				<td>Data</td>
			</tr>			
			<tr>
				<th>Title</th>
				<td>Data</td>
				<td>Data</td>
				<td>Data</td>
			</tr>																																					
		</table>		
		-->
		
	</div>
</div>
<!--
<div style="text-align:center;clear:both">
<p>适用浏览器：IE8、360、FireFox、Chrome、Opera、傲游、搜狗、世界之窗. 不支持Safari浏览器。</p>
<p>来源：<a href="http://sc.chinaz.com/" target="_blank">站长素材</a></p>
</div>-->
</body>
</html>
